Skip to content

Improve test coverage#852

Merged
byroot merged 8 commits into
ruby:masterfrom
etiennebarrie:coverage
Sep 8, 2025
Merged

Improve test coverage#852
byroot merged 8 commits into
ruby:masterfrom
etiennebarrie:coverage

Conversation

@etiennebarrie

Copy link
Copy Markdown
Contributor

Fix #850
Paired with @byroot

We worked on adding test coverage, and along the way we found a few issues:

  • json_create being called even if json_creatable? returns false
  • JSON::GenericObject tests not running and incorrect because they were looking for ::GenericObject, not JSON::GenericObject
  • deprecation warning backtraces were ignoring the test/ directory
  • there were shims for very old Ruby versions (String#@, OpenStruct#[])

etiennebarrie and others added 8 commits September 8, 2025 15:34
Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
Fix f411ddf

Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
The gem root was including the test/ directory, so lines from tests were
skipped, and the deprecation warnings were shown as coming from the test
framework.

Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
Test SubArrayWrapper#[] and SubOpenStruct#[]

Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
@byroot byroot merged commit acf6e04 into ruby:master Sep 8, 2025
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Code Coverage

2 participants